<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/2
 * Time: 17:19
 */
include "config.php";
if(!empty($_REQUEST["uname"])){
    $name=$_REQUEST["uname"];
    $readySql="SELECT * FROM fashionshopping.userinfo WHERE u_name=?";
    $stmt=$conn->prepare($readySql);
    $stmt->bind_param("s",$name);
    $stmt->execute();
    $result=$stmt->get_result();
    if($result->num_rows>=1){
        print_r("false");
    }else{
        print_r("true");
    }
}